﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;

namespace CH.Easy.OpenLogin
{
    public class CallBackDTO 
    {
        public string client_id { get; set; }
        public string openid { get; set; }
    }

    public class AccessTokenDTO
    {
        public string access_token { get; set; }
        public string expires_in { get; set; }
        public string refresh_token{ get; set; }
        /// <summary>
        /// 新浪微博专用 类似于OpenID
        /// </summary>
        public string uid { get; set; }
        /// <summary>
        /// 新浪微博专用 过期时间
        /// </summary>
        public string remind_in { get; set; }
    }

    public class ResultDTO 
    {
        public bool is_json { get; set; }
        public string result_string { get; set; }
        public JObject result { get; set; }



        public OpenType open_type { get; set; }
        public bool is_succeed { get; set; }
        public string err { get; set; }
    }

    public class UserDTO 
    {
        /// <summary>
        /// SinaWeibo= uid QZone=openid TXWeibo=openid
        /// </summary>
        public string openid { get; set; }
        public string head_small { get; set; }
        public string head_medium { get; set; }
        public string head_big { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nick { get; set; }
        /// <summary>
        /// 用户帐户名
        /// </summary>
        public string name { get; set; }
        public string sex { get; set; }
        public string birth_day { get; set; }
        public string birth_month { get; set; }
        public string birth_year { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string json { get; set; }



        public OpenType open_type { get; set; }
        public bool is_succeed { get; set; }
        public string err { get; set; }
    
    }

}
